package com.xtourms.client.ui.util;

import com.google.gwt.user.client.ui.Label;

public class MoneyLabel extends Label {

	public MoneyLabel(){
	}
	
	public MoneyLabel(String value){
		super(value);
	}
	
	public void setText(String text){
		super.setText(toYuan(text));
	}
	
	private static String toYuan(String fen){
		int coin = Integer.parseInt(fen);
		String yuan = coin/100+"."+coin%100+ "元";
		return yuan;
	}
}
